﻿using SXFramWork.Core;
using SXFramWork.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SXFramWork.Service
{
    /// <summary>
    /// 消息服务接口
    /// </summary>
    public interface ISysMessageService
    {
        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<IApiResult> Query(SysMessageQueryModel model);
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<IApiResult> Add(MessageAddModel model);
        Task<IApiResult> Delete(List<string> ids);
        Task<IApiResult> ReadMsg(string id);
        Task<List<SysMessageEntity>> GetUnReadList();
        Task<IApiResult> ReadAllMsg(int type);
    }
}
